package net.xiangcaowuyu.log4j.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试log4j2
 *
 * @author laughing
 * @date 2021.5.29
 */
@RequestMapping("")
@RestController
@Slf4j
public class IndexController {

    @GetMapping
    public String index() {
        log.info("测试日志");
        return "测试成功";
    }

}
